package com.neutech.mapper;

import com.neutech.entity.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CourseMapper {

    List<Course> listAll();

//    int add(@Param("cno") String cno, @Param("cname")String cname,
//            @Param("credit")Integer credit, @Param("semester")Integer semester);
    int add(@Param("c")Course course);
    void update();
    int del();
    Course getByCname(String cname);
}
